<template>
  <div>
    <h1>我是爷爷</h1>
    <div>{{sunziMsg}}</div>
    <hr />
    <son :money="money" :other="other" @thankYou="fromGrandSonMsg"></son>
    
  </div>
</template>

<script>
import Son from "./Son.vue";
export default {
  components: { Son },
  data() {
    return {
      money: 1000,
      other:'瓜子、糖、食品',
      sunziMsg:''
    };
  },
  methods:{
    fromGrandSonMsg(arg){
        console.log('arg',arg);
        this.sunziMsg=arg
    }
  }
};
</script>

<style>
</style>